Nonvolatile memory controller and method for erase suspend management that increments the number of program and erase cycles after erase suspend

ABSTRACT

A nonvolatile memory controller and a method for erase suspend management are disclosed. The nonvolatile memory controller includes an erase suspend circuit configured for determining a pre-suspend time each time that an erase operation of the nonvolatile memory device is suspended and for determining whether an erase-suspend limit has been reached using the determined pre-suspend time. The erase suspend circuit is further configured for incrementing the number of program and erase cycles when the erase-suspend limit has been reached.

BACKGROUND

Nonvolatile memory manufacturers such as manufacturers of NAND flash memory devices typically specify a maximum number of erase suspend operations for devices that allow for erase suspend operations. Exceeding the number of erase suspend operations specified in the operating specification can lead to either a higher raw Bit Error Rate (BER) or a bad block condition. Erase suspend means suspension of an erase command prior to completion of the erasure.

For some 1× nanometer TLC NAND devices the maximum number of erase suspends is only 10, or in some cases may be less than 10. This low number of allowed erase suspends is not sufficient to obtain desired quality of service levels.

Accordingly, there is a need for a method and apparatus that allows for increasing the number of erase suspend operations and that does not increase the BER or cause a bad block condition as a result of erase suspend operations.

SUMMARY

A method is disclosed that includes identifying an erase-suspend limit and determining a pre-suspend time each time that an erase operation is suspended. The method includes determining whether the erase-suspend limit has been reached using the determined pre-suspend time and preventing subsequent suspends of the erase operation when the erase-suspend limit has been reached.

A nonvolatile memory controller is disclosed that is configured to perform erase operations on memory cells of nonvolatile memory devices and that includes an erase suspend circuit. The erase suspend circuit is configured for determining a pre-suspend time each time that an erase operation of the nonvolatile memory device is suspended. The determined pre-suspend time for a first suspend of the erase operation is the time between a start of the erase operation and the first suspend of the erase operation, and the determined pre-suspend time for each additional suspend of the erase operation is the time between a resumption of the erase operation and the following suspend of the erase operation. The erase suspend circuit is configured for determining whether an erase-suspend limit has been reached using the determined pre-suspend time and is configured for preventing subsequent suspends of the erase operation when the erase-suspend limit has been reached.

A nonvolatile memory system is disclosed that includes a plurality of nonvolatile memory devices and a memory controller coupled to each of the nonvolatile memory devices. The nonvolatile memory controller includes an erase suspend circuit configured for determining a pre-suspend time each time that an erase operation of the nonvolatile memory device is suspended, for determining whether an erase-suspend limit has been reached using the determined pre-suspend time and for preventing subsequent suspends of the erase operation when the erase-suspend limit has been reached.

By preventing subsequent suspends of the erase operation when the erase-suspend limit has been reached, and identification of one or more erase-suspend limit that corresponds to the characteristics of the nonvolatile memory devices, the methods and apparatus of the present invention maintain BER of the nonvolatile memory devices within the range required to maintain manufacturer-specified endurance and retention specifications while allowing for more erase suspends than the number specified by the manufacturer of the nonvolatile memory devices.

BRIEF DESCRIPTION OF THE DRAWINGS

The accompanying drawings, which are incorporated in and form a part of this specification, illustrate various embodiments and, together with the Description of Embodiments, serve to explain principles discussed below. The drawings referred to in this brief description should not be understood as being drawn to scale unless specifically noted.

FIG. 1 is a flow diagram illustrating a method for erase suspend management in accordance with an embodiment of the present invention.

FIG. 2 is a block diagram illustrating a nonvolatile memory system in accordance with an embodiment of the present invention.

FIG. 3 is a diagram illustrating a NAND array in accordance with an embodiment of the present invention.

FIG. 4 is a diagram illustrating an erase operation in accordance with an embodiment of the present invention.

FIG. 5A is a diagram illustrating communications between a nonvolatile memory controller and a NAND device during an erase and an erase suspend of the NAND device in accordance with an embodiment of the present invention.

FIG. 5B is a diagram illustrating the voltage pulses applied to the NAND device during the erase and erase suspend operations of FIG. 5A in accordance with an embodiment of the present invention

FIG. 6 is a flow diagram illustrating a method for erase suspend management in which two pre-suspend time thresholds are used in accordance with an embodiment of the present invention.

FIG. 7 is a flow diagram illustrating a method for erase suspend management in which weighted pre-suspend time is used in accordance with an embodiment of the present invention.

FIG. 8 is a flow diagram illustrating a method for erase suspend management in which two pre-suspend time thresholds are used and in which weighted pre-suspend time is used in accordance with an embodiment of the present invention.

FIG. 9A is a flow diagram illustrating a method for erase suspend management in which the number of program and erase cycles of the block being erased is incremented when the erase-suspend limit is reached in accordance with an embodiment of the present invention.

FIG. 9B is a flow diagram illustrating a method for erase suspend management in which two pre-suspend time thresholds are used and in which the number of program and erase cycles of the block being erased is incremented when the erase-suspend limit is reached in accordance with an embodiment of the present invention.

FIG. 9C is a flow diagram illustrating a method for erase suspend management in which weighted pre-suspend time is used and in which the number of program and erase cycles of the block being erased is incremented when the erase-suspend limit is reached in accordance with an embodiment of the present invention.

FIG. 9D is a flow diagram illustrating a method for erase suspend management in which two pre-suspend time thresholds are used, in which weighted pre-suspend time is used and in which the number of program and erase cycles of the block being erased is incremented when the erase-suspend limit is reached in accordance with an embodiment of the present invention.

DETAILED DESCRIPTION

Reference will now be made in detail to various embodiments, examples of which are illustrated in the accompanying drawings. While various embodiments are discussed herein, it will be understood that they are not intended to be limiting. On the contrary, the presented embodiments are intended to cover alternatives, modifications and equivalents, which may be included within the spirit and scope the various embodiments as defined by the appended claims. Furthermore, in this Detailed Description of the Invention, numerous specific details are set forth in order to provide a thorough understanding. However, embodiments may be practiced without one or more of these specific details. In other instances, well known methods, procedures, components, and circuits have not been described in detail as not to unnecessarily obscure aspects of the described embodiments.

It will be understood that, although the terms first, second, third, etc. may be used herein to describe various elements, components, regions, layers and/or sections, these elements, components, regions, layers and/or sections should not be limited by these terms. These terms are only used to distinguish one element, component, region, layer or section from another region, layer or section. Thus, a first element, component, regions, layer or section discussed below could be termed a second element, component, region, layer or section without departing from the teachings of the present invention.

Referring now to FIG. 1 a method for erase suspend management 100 is shown that includes testing 101 sample nonvolatile memory devices in a test lab. The sample nonvolatile memory devices are similar to nonvolatile memory devices 20 shown in FIG. 2, and may be the same manufacturer, the same model, type and manufacturing batch as nonvolatile memory devices 20. The testing may determine one or more erase-suspend limit and one or more pre-suspend time threshold that will maintain the operation of the sample nonvolatile memory devices within required bit error rates established for the sample nonvolatile memory devices. In one embodiment, the erase-suspend limit(s) is chosen to obtain the highest possible number of erase suspends while maintaining the operation of the sample nonvolatile memory devices within required bit error rates established for the sample nonvolatile memory devices.

Nonvolatile memory system 10 includes a nonvolatile memory controller 11 in communication with a host computer 1, a nonvolatile storage module 18 and external memory 17 which may be, for example one or more DRAM. Nonvolatile memory controller 11 includes memory storage 12 that may include one or more volatile or nonvolatile memory location for storing data. Nonvolatile memory storage module 18 includes a plurality of nonvolatile memory devices 20 for storing data. Nonvolatile memory devices 20 may be NAND devices, with each NAND device 20 including one or more packaged semiconductor die that is coupled to nonvolatile memory controller 11. In one exemplary embodiment, each NAND device 20 is coupled to nonvolatile memory controller 11 by chip enable line (CE#), a command latch enable (CLE) line, a read enable signal line (RE#), an address latch enable (ALE) signal line, a write enable single line (WE#), a read/busy (RB) signal line and input and output (I/O) signal lines.

Each NAND device 20 includes memory cells that are organized into blocks and pages, with each block composed of NAND strings that share the same group of word lines. A logical page is composed of cells belonging to the same word line. The number of logical pages within logical block is typically a multiple of 16 (e.g. 64, 128). In the present embodiment, a logical page is the smallest addressable unit for reading from and writing to the NAND memory and a logical block is the smallest erasable unit. However, it is appreciated that in embodiments of the present invention programming to less than an entire page may be possible, depending on the structure of the NAND array. An exemplary NAND array 30 is shown in FIG. 3 that is made of memory cells connected in series to form NAND strings. Each NAND string is isolated from the rest of the array by select transistors, such as, for example, select transistor 31 and select transistor 32. Multiple memory cells share the gate voltage (Vg) through a word line, and the drain of one memory cell is the source of the adjacent one. For example, memory cells 34-39 of FIG. 3 share word line 0 (WL0). Though FIG. 3 illustrates an embodiment in which memory cells are single level cells, it is appreciated that NAND devices 20 can also be multi-level cell NAND devices and can store, for example, 2 bits per cell, 3 bits per cell or 4 bits per cell.

Each logical page is composed of a main data area and a spare area. The main data area may have the size of 4 kB, 8 kB, 16 kB or larger. The spare area is made up of hundreds of bytes for every 4 kB of main data storage area.

Erase suspend data is stored as shown by step 102 of FIG. 1. The erase suspend data includes the erase-suspend limit(s) and pre-suspend time threshold(s) determined in step 101. In the embodiment shown in FIG. 2 erase-suspend limit(s) and corresponding pre-suspend time threshold(s) are stored in nonvolatile memory system 10 (e.g., in memory storage 12, the spare area of one or more pages of each NAND device 20 or on external memory device 17).

In the present embodiment testing of sample nonvolatile memory devices is performed and the resulting erase suspend data is stored on memory storage 12 prior to shipping nonvolatile memory system 10 or nonvolatile memory controller 11 to a customer. In one specific embodiment erase suspend data is stored in memory storage 12 of nonvolatile memory controller 11 prior to shipping nonvolatile memory controller 11 to a customer. Alternatively, the erase suspend data may be included in the configuration data for nonvolatile memory controller 11 and may be stored externally to nonvolatile memory controller 11 and may be loaded into memory storage 12 or external memory 17 upon configuration of nonvolatile memory controller 11.

Method 100 further includes identifying an erase-suspend limit 103. The erase-suspend limit may be identified by reading the location in memory in which the erase-suspend limit was stored in step 102. Nonvolatile memory controller 11 may include a status circuit 13 configured to determine usage characteristics of NAND devices 20 such as, for example, the number or program and erase cycles of each block of each NAND device 20. In one embodiment the erase-suspend limit may be computed using the stored erase suspend data and the determined usage characteristics. In one specific embodiment the stored erase suspend data includes a table indicating program and erase cycles values and corresponding erase-suspend limit values and pre-suspend time threshold values, with the values to be used determined by indexing the table with the current number of program and erase cycles of the block of the NAND device 20 being erased. As the ease of erasing NAND devices 20 and BER varies as the number of program and erase cycles increases, this provides identification of an erase-suspend limit that is more accurate since it represents the current point of the lifetime of the NAND device being erased.

Normal operations of the nonvolatile memory system are performed 104, which may include reading, programming and erasing NAND devices 20 as well as housekeeping operations such as wear leveling and bad block management. In the embodiment shown in FIG. 2, nonvolatile memory controller 11 includes read circuit 14 that is operable to perform reads of NAND devices 20 and program and erase circuit 15 that is operable to perform program and erase operations on NAND devices 20.

When an erase operation is being performed, nonvolatile memory controller 11 may receive an erase suspend request 105 from Host 1. If an erase suspend request is not received during an erase operation, normal operation is continued, allowing the erase operation to be performed without suspension. In a typical erase operation, as shown in FIG. 4, a number of pulses 41-48 are applied to the cells being erased, with the voltage of each successive pulse 41-48 increased by a voltage step 40. A verification process is performed after each erase pulse 41-48 to determine whether the erase operation was successful. The process of applying successively higher erase voltage pulses continues until the erase verify indicates that the cells have been successfully erased or until a maximum number of erase steps have been performed. The erase pulses shown in FIG. 4 are shown to have a duration of approximately 1,000 microseconds. However, alternatively, pulses 41-48 could have longer or shorter duration.

It has been found that the effectiveness of the erase is lower at the beginning of the pulse. As a result, successive applications of a short pulse will not have the same effect on the nonvolatile memory device as longer pulses or complete pulses. Accordingly, when an erase operation is suspended a number of times, the effects of the suspensions on the BER of the nonvolatile memory device will vary depending on the amount of time that the voltage was applied during the erase operation.

When a request for suspension of the erase operation is received 105 at nonvolatile memory controller 11, the erase operation of the nonvolatile memory device is suspended 106 unless the erase-suspend limit has been reached 109. In the embodiment shown in FIG. 5A the erase operation is initiated by sending an erase command (e.g., an erase block command) 51 followed by the block address of the block that is to be erased and an erase command 52 which may be, for example an erase block command transmitted over an input and output (I/O) signal line 76 from nonvolatile memory controller 11 to the NAND device 20 being erased. As the NAND device 20 performs the erase operation it may generate a logical low 59 of the read/busy signal line of the NAND device 20 being erased. Step 106 includes sending an erase suspend command 53 to the NAND device 20 that is being erased. When the NAND device 20 stops the erase operation and is ready for new instructions the value in one or more registers on the NAND device 20 are changed and the read/busy (RB) output 75 of the NAND device 20 is raised to a logical high 60 which appears on I/O signal line 76.

Pre-suspend time is determined 107 each time that the erase operation of the nonvolatile memory device is suspended 106. Pre-suspend time for a first suspend of the erase operation is the time between a start of the erase operation and the first suspend of the erase operation. In the embodiment shown in FIG. 5A the pre-suspend time 50 a for the first suspend is determined to be the time between sending the erase command 52 to the NAND device 20 being erased, shown as erase start time 57 and the time at which the erase operation is suspended, shown as erase pre-suspend time 58.

Pre-suspend time for each additional suspend of the erase operation is the time between a resumption of the erase operation and the following suspend of the erase operation. In the embodiment shown in FIG. 5A the pre-suspend time 50 b for a second suspend is determined to be the time between sending the resume command 54 to the NAND device 20 being erased, shown as resume erase 61 a and the time at which the erase operation is suspended 62 a. Similarly, the pre-suspend time 50 c for a third suspend is determined to be the time between sending the resume command 54 a to the NAND device 20 being erased, shown as resume erase time 61 b and the time at which the erase operation is suspended 62 b.

The time at which the erase operation is suspended can also be determined using the time at which the erase suspend command is sent from nonvolatile memory controller 11 to the NAND device 20 being erased. In this embodiment the pre-suspend time is determined to be the time between sending the erase function start command 52 (e.g., D0 h) and the suspend command 53 (e.g., 61 h) or the time between sending the resume command 54 (e.g., D2 h) and the suspend command 53 a (e.g., 61 h).

With reference now to FIG. 5B it can be seen that during pre-suspend time 50 a voltage pulse 41 is applied to the cell being erased. During erase pre-suspend time 50 b the voltage of pulse 42 is applied to the cell being erased, and after the verification step, the voltage of pulse 43 is applied to the cell which is suspended prior to completion to yield incomplete voltage pulse 43 a. During pre-suspend time 50 c, the voltage of pulse 43 is again applied to the cell which is suspended prior to completion to yield incomplete voltage pulse 43 b.

After each suspend of the erase operation a determination is made as to whether the erase suspend limit has been reached 108. When the erase-suspend limit has not been reached the erase is resumed 111 (e.g., by sending a resume command 54, 54 a, 54 b to the NAND device 20) and normal operations are continued 104. When the erase-suspend limit has been reached 109 subsequent suspends of the erase operation are prevented 110 and the present erase operation is resumed 111 and allowed to complete without further suspension. More particularly, the presently ongoing erase operation on the block is not allowed to be suspended further. Subsequent erase operations of this particular block are treated separately, with each subsequent erase operation requiring performance of steps 105-111 when an erase suspend request is received during the subsequent erase operation.

In the embodiment shown in FIG. 2 erase suspend circuit 16 is configured for determining a pre-suspend time for each occurrence where an erase operation of the nonvolatile memory device is suspended, for determining whether an erase-suspend limit has been reached using the determined pre-suspend time and for preventing subsequent suspends of the erase operation when the erase-suspend limit has been reached. In the present embodiment erase suspend circuit 16 is operable to monitor program and erase circuit 15 and start a timer when the erase command 52 is sent to the NAND device being erased. Erase suspend circuit 16 is operable for monitoring a register of the NAND device 20 being erased that indicates when the erase operation has been suspended, and stopping the timer when the value in the register changes to indicate suspension of the erase operation. Alternatively, the read/busy signal can be used as an indicator to determine when the erase operation has been suspended. In this embodiment the time at which the erase operation is suspended is the time at which the erase/busy output of the NAND device being erased transitions back to a logical high 60.

By preventing subsequent suspends of the erase operation when the erase-suspend limit has been reached, and identification of one or more erase-suspend limit that correspond to the characteristics of nonvolatile memory devices 20, the methods and apparatus of the present invention maintain BER of nonvolatile memory devices 20 within the range required to maintain manufacturer-specified endurance and retention specifications while allowing for more erase suspends than the number specified by the manufacturer of nonvolatile memory devices 20.

A method 600 is illustrated in FIG. 6 in which pre-suspend time is categorized into three groupings, one group that includes pre-suspend times having a short-duration, a second group that includes pre-suspend times having a medium-duration and a third group that includes pre-suspend times having longer-duration. In this embodiment the testing of step 101 determines an erase-suspend limit that includes a first erase-suspend limit, a second erase-suspend limit and a third erase-suspend limit. The testing also identifies a first pre-suspend time threshold and a second pre-suspend time threshold that define the three groupings of pre-suspend time, with the first pre-suspend time threshold having a value that is less than the second pre-suspend time threshold.

The number of suspends having a pre-suspend time that does not exceed 610 a first pre-suspend time threshold (STT₁) is summed 612 to obtain a first sum. This first sum indicates the number of erase suspends with pre-suspend time having a short duration and may be referred to hereinafter as the short-duration sum.

The number of suspends having a pre-suspend time that exceeds 610 the first pre-suspend time threshold and that does not exceed 611 the second pre-suspend time threshold (STT₂) is summed 613 to obtain a second sum. This second sum indicates the number of erase suspends with pre-suspend time having a medium duration and may be referred to hereinafter as the medium-duration sum.

The number of suspends having a pre-suspend time that exceeds 611 the second pre-suspend time threshold is summed 614 to obtain a third sum. This third sum indicates the number of erase suspends with pre-suspend time having a longer duration and may be referred to hereinafter as the long-duration sum.

The summing of steps 612-614 is done for each block being erased. For example, counters in erase suspend circuit 16 may be incremented upon each erase suspend operation and the results stored in memory storage 12.

The sums from steps 612, 613 and 614 are compared 615 to the corresponding erase suspend limits to determine when the erase-suspend limit has been reached. More particularly, the short duration sum is compared to the first erase-suspend limit, the medium duration sum is compared to the second erase-suspend limit and the long duration sum is compared to the third erase-suspend limit. The erase-suspend limit is reached when the short duration sum reaches the first erase-suspend limit or when the medium duration sum reaches the second erase-suspend limit or when the long duration sum reaches the third erase-suspend limit. In the present embodiment, the first erase-suspend limit is greater than the second erase-suspend limit and the second erase-suspend limit is greater than the third erase-suspend limit such that more short-duration-pre-suspend-time suspends are allowed than medium-duration-pre-suspend-time suspends, and more medium-duration-pre-suspend-time suspends are allowed than long-duration-pre-suspend-time suspends.

Following is an example in which the testing 101 of exemplary NAND devices that are similar to NAND devices 20 (e.g., the same manufacturer, model, manufacturing batch, etc.) has determined that up to 20 suspends can be tolerated for pre-suspend time intervals of less than 300 microseconds, up to 15 suspends can be tolerated for pre-suspend time intervals of more than 300 microseconds and up to 1,000 microseconds, and up to 10 suspends can be tolerated for pre-suspend time intervals of more than 1,000 microseconds. In this embodiment the first pre-suspend time threshold is set at 300 microseconds, which is less than a third of the duration of the erase pulse used by NAND devices 20 and the second pre-suspend time threshold is set at 1,000 microseconds which is approximately the length of the erase pulse used by NAND devices 20. The first erase-suspend limit is set at 20, the second erase-suspend limit is set at 15 and the third erase-suspend limit is set at 10. Each time a suspend is performed having a time within the first interval (less than or equal to 300 microseconds) the counter for the short duration sum is incremented 612 by one. Each time a suspend is performed having a time within the second interval (more than 300 microseconds and less than or equal to 1,000 microseconds) the counter for the medium duration sum is incremented 613 by one. Each time a suspend is performed having a time within the third interval (more than 1,000 microseconds) the counter for the long duration sum is incremented 614 by one. When the first erase-suspend limit reaches 20, the second erase-suspend limit reaches 15 or the third erase-suspend limit reaches 10 further suspends are prevented 110.

By allowing more short-duration-pre-suspend-time suspends than medium-duration-pre-suspend-time suspends, and more medium-duration-pre-suspend-time suspends than long-duration-pre-suspend-time suspends, the method and apparatus of the present invention maintain BER of nonvolatile memory devices 20 within the range required to maintain manufacturer-specified endurance and retention specifications while allowing for more erase suspends than the number specified by the manufacturer of nonvolatile memory devices 20.

In other embodiments pre-suspend time may be categorized into more or fewer groupings, depending on the characteristics of NAND devices 20. In one alternate embodiment only two groups are used, a first group having pre-suspend times with short-duration and a second group that includes pre-suspend times having a greater duration. In one exemplary embodiment the erase-suspend limit includes a first erase-suspend limit and a second erase-suspend limit, and the determining whether the erase-suspend limit has been reached includes summing the number of suspends having a pre-suspend time that does not exceed a first pre-suspend time threshold to obtain a first sum, summing the number of suspends having a pre-suspend time that exceeds the first pre-suspend time threshold to obtain a second sum. In this embodiment the erase-suspend limit is reached when the first sum reaches the first erase-suspend limit or when the second sum reaches the second erase-suspend limit. For example, only the first pre-suspend time threshold (PSTT₁) of 300 microseconds can be used, producing a first sum that is the sum of pre-suspend times that do not exceed the pre-suspend time threshold and a second sum that is the sum of pre-suspend times that exceed the pre-suspend time threshold. In this embodiment the testing of step 101 identifies a short duration pre-suspend time window in which the erase pulses are not effective to move the BER of the cells being erased, and allows for an increased number of suspends that occur within the identified window as compared to the number of suspends allowed outside of the identified window. For example, in an embodiment in which the NAND device 20 manufacturer only specifies that 10 total suspends are allowed, in one embodiment only 10 total suspends are allowed that have a pre-suspend time greater than that of the identified window. In the present embodiment more suspends are allowed having a pre-suspend time that does not exceed the first pre-suspend time threshold than are allowed having a pre-suspend time that exceeds the first pre-suspend time threshold. For example, up to thirty suspends could be allowed that have a pre-suspend time within the identified window. It is appreciated that more or fewer suspends within the identified window could be allowed, depending on the results of the testing of the sample NAND devices.

In method 700 that is shown in FIG. 7, the erase-suspend limit is a weighted pre-suspend time limit. In this embodiment one or more weighted pre-suspend time limit is determined in step 101 by testing sample nonvolatile memory devices similar to the nonvolatile memory devices 20 in nonvolatile memory system 10. The one or more weighted pre-suspend time limit is stored in step 102 and step 103 further includes reading the stored weighted pre-suspend time limit. In one embodiment the stored erase suspend data includes a table indicating program and erase cycle values and corresponding erase-suspend limit values (weighted pre-suspend time limits) and pre-suspend time threshold values, with the values to be used determined by indexing the table with the current number of program and erase cycles of the NAND device 20 being erased. As the ease of erasing NAND devices 20 and BER varies as the number of program and erase cycles increases, this provides identification of an erase-suspend limit that is more accurate since it represents the current point of the lifetime of the NAND device being erased.

Weighted pre-suspend time is determined as shown by step 710 using the pre-suspend time determined in step 107. In one embodiment weighted pre-suspend time is determined by assigning a different weighted pre-suspend time value to each of a plurality of pre-suspend time intervals. Since pre-suspend times having shorter duration have less impact on the BER than longer pre-suspend times, pre-suspend times having a shorter duration will have a lower weighting factor than pre-suspend times having an intermediate pre-suspend time and pre-suspend times having a longer pre-suspend time. Also, pre-suspend times having medium duration have less impact on the BER than suspends with longer pre-suspend times and therefore will have a lower weighting factor than suspends having a longer pre-suspend time.

The weighted pre-suspend time determined in step 710 is summed 711 for each erase operation. The erase-suspend limit is reached 108 when the sum reaches the weighted pre-suspend time limit. More particularly, the summed weighted pre-suspend time for the block subject to the suspend operation is compared to the weighted pre-suspend time limit identified in step 103.

When the summed weighted pre-suspend time reaches the erase-suspend limit (which is the weighted pre-suspend time limit) 109 further suspends of the erase are prevented 110 and the erase is resumed 111, allowing the erase operation to complete without further interruption.

In the present embodiment erase suspend circuit 16 is operable for determining weighted pre-suspend time 710, summing the determined weighted pre-suspend times for the erase operation 711 and storing the sum for each block being erased in memory storage 12 or external memory 17. In addition, erase suspend circuit 16 is operable for comparing the sum determined in step 711 to the weighted pre-suspend time limit identified in step 103 for determining whether the erase-suspend limit has been reached 108. When the summed weighted pre-suspend time reaches the weighted pre-suspend time limit 109 erase suspend circuit 16 resets summed weighted pre-suspend time to zero and prevents further suspends 110.

In method 800 that is illustrated in FIG. 8, erase-pre-suspend time is categorized into three groupings, one group that includes pre-suspend times having a short duration, a second group that includes pre-suspend times having a medium duration and a third group that includes pre-suspend times having longer duration. In this embodiment the testing of step 101 determines a weighted pre-suspend time limit, a first pre-suspend time threshold and a second pre-suspend time threshold that define the three groupings of erase pre-suspend time and corresponding weighted pre-suspend times. In the present embodiment, the weighted pre-suspend time (WPST) is equal to a first weighted pre-suspend time (Short-Duration WPST) when the determined pre-suspend time does not exceed a first pre-suspend time threshold. The weighted pre-suspend time is equal to a second weighted pre-suspend time (Medium-Duration WPST) when the determined pre-suspend time exceeds the first pre-suspend time threshold but does not exceed a second pre-suspend time threshold. Similarly, the weighted pre-suspend time is equal to a third weighted pre-suspend time (Long-Duration WPST) when the determined pre-suspend time exceeds the second pre-suspend time threshold. The weighted pre-suspend time is summed in steps 810-812. More particularly the weighted pre-suspend time sum (WPST Sum) is incremented by the short-duration WPST 810 when the determined pre-suspend time does not exceed 610 the first pre-suspend time threshold, incremented by the medium-duration WPST 811 when the determined pre-suspend time exceeds 610 the first pre-suspend time threshold but does not exceed 611 a second pre-suspend time threshold and incremented 812 by the long-duration WPST when the determined pre-suspend time exceeds 611 the second pre-suspend time threshold.

The third weighted suspend (Long-Duration WPST) time is greater than the second weighted pre-suspend time (Medium-Duration WPST), and the second weighted pre-suspend time (Medium-Duration WPST) is greater than the first weighted pre-suspend time (Short-Duration WPST). The WPST sum is compared to the weighted pre-suspend time limit and the erase-suspend limit is reached when the WPST sum reaches the weighted erase-suspend limit. Thereby, more short-duration-suspend-time suspends are allowed than medium-duration-suspend-time suspends, and more medium-duration-suspend-time suspends are allowed than long-duration-suspend-time suspends. Thereby, the method and apparatus of the present invention maintain BER of nonvolatile memory devices 20 within the range required to maintain manufacturer-specified endurance and retention specifications while allowing for more erase suspends than the number specified by the manufacturer of nonvolatile memory devices 20.

Following is an exemplary embodiment in which testing of exemplary NAND devices has determined that up to 20 suspends can be tolerated for pre-suspend time intervals of less than 300 microseconds, up to 15 suspends can be tolerated for pre-suspend time intervals of more than 300 microseconds and up to 1,000 microseconds, and up to 10 suspends can be tolerated for pre-suspend time intervals of more than 1,000 microseconds. This gives a weighting factor of 45/20=2.25 for pre-suspend times having a short-duration pre-suspend time, a weighting factor of 45/15=3 for erase suspends having a medium-duration pre-suspend time and a weighting factor of 45/10=4.5 for erase suspends having a long-duration pre-suspend time and a weighted pre-suspend time limit of 45. Each time a suspend is performed having a time within the first interval (less than or equal to 300 microseconds) a weighted pre-suspend time of 2.25 is summed in step 810. Each time a suspend is performed having a time within the second interval (more than 300 microseconds and less than or equal to 1,000 microseconds) a weighted pre-suspend time of 3 is summed in step 811. Each time a suspend is performed having a time within the third interval (more than 1,000 microseconds) a weighted pre-suspend time of 4.5 is summed in step 812. When the weighted pre-suspend time sum reaches 45 further suspends are prevented 110.

In this embodiment the weighted pre-suspend time limit is 45, allowing for the erase operation to continue to be suspended until the weighted pre-suspend time sum reaches 45. At that time, further suspends of the erase are prevented 110 and the erase is resumed 111. Thus, a total number of 20 suspends are allowed when all are within the first interval, a total of 15 suspends are allowed when all are within the second interval, and a total of 10 suspends are allowed when all are within the third interval.

In other embodiments erase-pre-suspend time may be categorized into more or fewer groupings, depending on the characteristics of NAND devices 20. In one alternate embodiment only two groups are used, a first group having pre-suspend times with short duration and a second group that includes pre-suspend times having a greater duration, with different weighting applied to each group. In this embodiment the weighted pre-suspend time is equal to a first weighted pre-suspend time when the determined pre-suspend time does not exceed the first pre-suspend time threshold and the weighted pre-suspend time is equal to a second weighted pre-suspend time that is greater than the first weighted pre-suspend time when the determined pre-suspend time exceeds the first pre-suspend time threshold. In this embodiment the erase-suspend limit is reached when the sum reaches the weighted erase-suspend limit. In this embodiment the testing of step 101 identifies a short duration pre-suspend time window in which the erase pulses are not effective to move the BER of the cells being erased, and allows for an increased number of suspends that occur within the identified window as compared to the number of suspends allowed outside of the identified window. For example, in an embodiment in which the NAND device 20 manufacturer only specifies that 10 total suspends are allowed, in one embodiment only 10 total suspends are allowed that have a pre-suspend time greater than that of the identified window and up to 30 suspends are allowed having a pre-suspend time within the identified window, giving a weighting factor of 1 to each pre-suspend time within the identified time window and a weighting factor of 3 to each pre-suspend time outside of the identified time window and a weighted suspend-time limit of 30. Accordingly, each time that the determined pre-suspend time does not exceed the first pre-suspend time threshold the weighted pre-suspend time sum is incremented by one and each time that the determined pre-suspend time exceeds the first pre-suspend time threshold the weighted pre-suspend time sum is incremented by a value of three. Thus, significantly more suspends are allowed having a pre-suspend time that does not exceed the first pre-suspend time threshold than are allowed having a pre-suspend time that exceeds the first pre-suspend time threshold. It is appreciated that more or fewer suspends within the identified window could be allowed, depending on the results of the testing of the sample NAND devices in step 101.

In one alternate embodiment weighted pre-suspend time is determined 710 by multiplying the pre-suspend time determined in step 107 by a suspend weighting factor determined in step 101. The suspend weighting factor in this embodiment more heavily weights suspends outside of the pre-suspend time window in which the erase pulses are not effective to significantly move the BER of the cells being erased.

In one embodiment that is illustrated in FIGS. 9A-9D, instead of preventing further suspends, the number of program and erase cycles is incremented by one when the erase-suspend limit is reached. In this embodiment, the testing of step 101 determines an erase-suspend limit that corresponds to the effect of the suspensions on the BER of the block being erased. In one embodiment, the erase-suspend limit is chosen so that BER introduced by the suspends allowed by the erase-suspend limit is equal to the BER introduced by a single program and erase cycle. By increasing the number of P/E cycles for the block being erased when an erase-suspend limit is reached, the method and apparatus of the present invention takes into account the effect of the suspends on BER. Thereby, the increased number of suspends will not result in a bad block condition as could occur in prior art systems if the number of allowed suspends were to be exceeded.

In one specific embodiment, status circuit 13 maintains the number of program and erase cycles of each block and stores the number of program and erase cycles in memory storage 12 or in the spare area of one or more of nonvolatile memory devices 20. In this embodiment erase suspend circuit 16 is configured for determining a pre-suspend time each time that an erase operation of the nonvolatile memory device is suspended, for determining whether an erase-suspend limit has been reached using the determined pre-suspend time and incrementing the number of program and erase cycles for the block being erased when the erase-suspend limit has been reached. In the embodiment shown in FIG. 2 erase suspend circuit 16 is operable to indicate to status circuit 13 that the number of program and erase cycles is to be incremented by one and status circuit 13 is operable to increment the number of program and erase cycles of the block being erased by one. Alternatively, erase suspend circuit 16 is operable to increment the number of program and erase cycles by 1 independently of status circuit 13 (e.g., by incrementing a value stored in memory storage 12 or in the spare area of the NAND device 20 being erased). Erase suspend circuit 16 then resets the counters used for determining whether the erase-suspend limit has been reached and allows the erase operation to resume 111. More particularly, in the embodiment shown in FIG. 9B, the short-duration sum counter, the medium-duration sum counter and the long-duration sum counter are reset to 0 and the erase is resumed 111. Similarly, in the embodiment shown in FIGS. 9C-9D, the weighted pre-suspend time sum is reset to 0 and the erase is resumed 111. In the embodiments of FIGS. 9A-9D, further suspends are not prevented, but are always allowed. This allows for the user to make a trade-off between speed and lifespan of nonvolatile memory devices 20. More particularly, the lifespan of the block is reduced as a result of the number of added program and erase cycles, reducing the overall lifespan of the nonvolatile memory devices 20. However, the number of suspends is not limited at all, allowing for a much faster nonvolatile memory system and a higher quality of service.

By allowing for more erase suspends, the method and apparatus of the present invention allows for more suspends than prior art systems, providing a nonvolatile memory system having improved quality of service.

Unless specifically stated otherwise as apparent from the discussion, it is appreciated that throughout the description, discussions utilizing terms such as “testing”, “identifying”, “generating”, “comparing”, “sending”, “summing”, “preventing”, or the like, can refer to the action and processes of a computer system, or similar electronic computing device, that manipulates and transforms data represented as physical (electronic) quantities within the computer system's registers and memories into other data similarly represented as physical quantities within the computer system memories or registers or other such information storage, transmission, or display devices.

Further, for purposes of discussing and understanding the embodiments of the invention, it is to be understood that various terms are used by those knowledgeable in the art to describe techniques and approaches. Furthermore, in the description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the present invention. It will be evident, however, to one of ordinary skill in the art that the present invention may be practiced without these specific details. In some instances, well-known structures and devices are shown in block diagram form, rather than in detail, in order to avoid obscuring the present invention. These embodiments are described in sufficient detail to enable those of ordinary skill in the art to practice the invention, and it is to be understood that other embodiments may be utilized and that logical, mechanical, electrical, and other changes may be made without departing from the scope of the present invention. 

What is claimed is:
 1. A method comprising: identifying an erase-suspend limit; sending an erase suspend command to a nonvolatile memory device to suspend an erase operation of the nonvolatile memory device; each time that the erase suspend command is sent to the nonvolatile memory device: determining a pre-suspend time, wherein the pre-suspend time for a first suspend of the erase operation is the time between a start of the erase operation and the first suspend of the erase operation, and the pre-suspend time for each additional suspend of the erase operation is the time between a resumption of the erase operation and the following suspend of the erase operation; summing the determined pre-suspend time with all previously determined pre-suspend times for the erase operation to obtain a first sum; and comparing the first sum to the erase-suspend limit to determine whether the erase-suspend limit has been reached; and incrementing a number of program and erase cycles when the erase-suspend limit has been reached.
 2. The method of claim 1 further comprising testing sample nonvolatile memory devices that are similar to the nonvolatile memory device to determine the erase-suspend limit that will maintain the operation of the sample nonvolatile memory devices within required bit error rates established for the sample nonvolatile memory devices.
 3. The method of claim 1 further comprising counting the number of program and erase cycles by incrementing a counter upon each program and each erase operation, wherein the incrementing a number of program and erase cycles when the erase-suspend limit has been reached further comprises incrementing the counter each time that the erase-suspend limit is reached.
 4. A method comprising: identifying a first erase-suspend limit, a second erase-suspend limit and a third erase-suspend limit, wherein the first erase-suspend limit is greater than the second erase-suspend limit and the second erase-suspend limit is greater than the third erase-suspend limit; each time that an erase operation of a nonvolatile memory device is suspended: determining a pre-suspend time, wherein the pre-suspend time for a first suspend of the erase operation is the time between a start of the erase operation and the first suspend of the erase operation, and the pre-suspend time for each additional suspend of the erase operation is the time between a resumption of the erase operation and the following suspend of the erase operation; counting the number of suspends having a pre-suspend time that does not exceed a first pre-suspend time threshold to obtain a first sum; counting the number of suspends having a pre-suspend time that exceeds the first pre-suspend time threshold and that does not exceed a second pre-suspend time threshold to obtain a second sum; and counting the number of suspends having a pre-suspend time that exceeds the second pre-suspend time threshold to obtain a third sum; and incrementing a number of program and erase cycles when the first sum reaches the first erase-suspend limit or when the second sum reaches the second erase-suspend limit or when the third sum reaches the third erase-suspend limit.
 5. The method of claim 4 further comprising testing sample nonvolatile memory devices that are similar to the nonvolatile memory device to determine the first erase-suspend limit, the second erase-suspend limit, the third erase-suspend limit, the first pre-suspend time threshold and the second pre-suspend time threshold that will maintain the operation of the sample nonvolatile memory devices within required bit error rates established for the sample nonvolatile memory devices.
 6. A method comprising: identifying an erase-suspend limit; sending an erase suspend command to a nonvolatile memory device to suspend an erase operation of the nonvolatile memory device; each time that the erase suspend command is sent to the nonvolatile memory device: determining a pre-suspend time, wherein the pre-suspend time for a first suspend of the erase operation is the time between a start of the erase operation and the first suspend of the erase operation, and the pre-suspend time for each additional suspend of the erase operation is the time between a resumption of the erase operation and the following suspend of the erase operation; determining a weighted pre-suspend time using the determined pre-suspend time; summing the determined weighted pre-suspend time with all previously determined weighted pre-suspend times for the erase operation to obtain a first sum; and comparing the first sum to the erase-suspend limit to determine whether the erase-suspend limit has been reached; and incrementing a number of program and erase cycles when the erase-suspend limit has been reached.
 7. The method of claim 6 wherein: the weighted pre-suspend time is equal to a predetermined first weighted pre-suspend time when the determined pre-suspend time does not exceed a first pre-suspend time threshold; and the weighted pre-suspend time is equal to a predetermined second weighted pre-suspend time that is greater than the first weighted pre-suspend time when the determined pre-suspend time exceeds the first pre-suspend time threshold.
 8. The method of claim 6 wherein: the weighted pre-suspend time is equal to a predetermined first weighted pre-suspend time when the determined pre-suspend time does not exceed a first pre-suspend time threshold; the weighted pre-suspend time is equal to a predetermined second weighted pre-suspend time when the determined pre-suspend time exceeds the first pre-suspend time threshold but does not exceed a second pre-suspend time threshold; the weighted pre-suspend time is equal to a predetermined third weighted pre-suspend time when the determined pre-suspend time exceeds the second pre-suspend time threshold; and wherein the third weighted pre-suspend time is greater than the second weighted pre-suspend time, and the second weighted pre-suspend time is greater than the first weighted pre-suspend time.
 9. The method of claim 6 further comprising testing sample nonvolatile memory devices that are similar to the nonvolatile memory device to determine the first weighted pre-suspend time, the second weighted pre-suspend time, the third weighted pre-suspend time, the first pre-suspend time threshold and the second pre-suspend time threshold that will maintain the operation of the sample nonvolatile memory devices within required bit error rates established for the sample nonvolatile memory devices.
 10. The method of claim 6 further comprising storing a table that includes weighted pre-suspend time values, the determining a weighted pre-suspend time comprising indexing the table with the determined pre-suspend time to obtain a corresponding weighted pre-suspend time value.
 11. The method of claim 6 wherein determining a weighted pre-suspend time further comprises multiplying the determined pre-suspend time by a weighting factor.
 12. A nonvolatile memory controller comprising: an erase suspend circuit configured for suspending an erase operation of a nonvolatile memory device by sending an erase suspend command to the nonvolatile memory device, each time that the erase suspend command is sent to the nonvolatile memory device, the erase suspend circuit configured for: determining a pre-suspend time, wherein the determined pre-suspend time for a first suspend of the erase operation is the time between a start of the erase operation and the first suspend of the erase operation, and the determined pre-suspend time for each additional suspend of the erase operation is the time between a resumption of the erase operation and the following suspend of the erase operation; summing the determined pre-suspend time with all previously determined pre-suspend times for the erase operation; comparing the sum to an erase-suspend limit to determine whether the erase-suspend limit has been reached; and incrementing a number of program and erase cycles when the erase-suspend limit has been reached.
 13. A nonvolatile memory controller comprising: an erase suspend circuit configured for suspending an erase operation of a nonvolatile memory device by sending an erase suspend command to the nonvolatile memory device, each time that the erase suspend command is sent to the nonvolatile memory device, the erase suspend circuit configured for: determining a pre-suspend time, wherein the determined pre-suspend time for a first suspend of the erase operation is the time between a start of the erase operation and the first suspend of the erase operation, and the determined pre-suspend time for each additional suspend of the erase operation is the time between a resumption of the erase operation and the following suspend of the erase operation; counting the number of suspends of the erase operation having a pre-suspend time that does not exceed a first pre-suspend time threshold to obtain a first sum; counting the number of suspends of the erase operation having a pre-suspend time that exceeds the first pre-suspend time threshold to obtain a second sum; comparing the first sum to a first erase-suspend limit; comparing the second sum to a second erase-suspend limit; and incrementing a number of program and erase cycles when the first sum reaches the first erase-suspend limit or when the second sum reaches the second erase-suspend limit.
 14. The nonvolatile memory controller of claim 13 further comprising: wherein the erase suspend circuit is configured to count the number of suspends of the erase operation having a pre-suspend time that exceeds the first pre-suspend time threshold by counting the number of suspends having a pre-suspend time that exceeds the first pre-suspend time threshold and that does not exceed a second pre-suspend time threshold to obtain the second sum, and count the number of suspends having a pre-suspend time that exceeds a second pre-suspend time threshold to obtain a third sum; wherein the erase suspend circuit is configured to compare the third sum to a third erase-suspend limit; and wherein the erase suspend circuit is configured to increment the number of program and erase cycles when the first sum reaches the first erase-suspend limit or when the second sum reaches the second erase-suspend limit or when the third sum reaches the third erase-suspend limit.
 15. A nonvolatile memory controller comprising: an erase suspend circuit configured for suspending an erase operation of a nonvolatile memory device by sending an erase suspend command to the nonvolatile memory device, each time that the erase suspend command is sent to the nonvolatile memory device, the erase suspend circuit configured for: determining a pre-suspend time, wherein the determined pre-suspend time for a first suspend of the erase operation is the time between a start of the erase operation and the first suspend of the erase operation, and the determined pre-suspend time for each additional suspend of the erase operation is the time between a resumption of the erase operation and the following suspend of the erase operation; determining a weighted pre-suspend time using the determined pre-suspend time; summing the determined weighted pre-suspend time with all previously determined weighted pre-suspend times for the erase operation; comparing the sum to an erase-suspend limit to determine whether the erase-suspend limit has been reached; and incrementing a number of program and erase cycles when the erase-suspend limit has been reached.
 16. The nonvolatile memory controller of claim 15 wherein the erase suspend circuit is configured for determining that the weighted pre-suspend time is equal to a first weighted pre-suspend time when the determined pre-suspend time does not exceed a first pre-suspend time threshold and determining that the weighted pre-suspend time is equal to a second weighted pre-suspend time that is greater than the first weighted pre-suspend time when the determined pre-suspend time exceeds the first pre-suspend time threshold.
 17. The nonvolatile memory controller of claim 16 wherein the first pre-suspend time threshold is 300 microseconds and the second pre-suspend time threshold is 1,000 microseconds.
 18. The nonvolatile memory controller of claim 15 wherein the erase suspend circuit is configured for determining that the weighted pre-suspend time is equal to a first weighted pre-suspend time when the determined pre-suspend time does not exceed a first pre-suspend time threshold, determining that the weighted pre-suspend time is equal to a second weighted pre-suspend time when the determined pre-suspend time exceeds the first pre-suspend time threshold but does not exceed a second pre-suspend time threshold and determining that the weighted pre-suspend time is equal to a third weighted pre-suspend time when the determined pre-suspend time exceeds the second pre-suspend time threshold, wherein the third weighted pre-suspend time is greater than the second weighted pre-suspend time, and the second weighted pre-suspend time is greater than the first weighted pre-suspend time.
 19. The nonvolatile memory controller of claim 15 wherein the weighted pre-suspend time is determined by multiplying the determined pre-suspend time by a weighting factor.
 20. The nonvolatile memory controller of claim 15 wherein the weighted pre-suspend time is determined by indexing a table with the determined pre-suspend time to obtain the corresponding weighted pre-suspend time. 